package cn.lingyangwl.agile.model.module.config.param;

import cn.lingyangwl.agile.model.enums.ConfigKeyEnum;
import com.alibaba.fastjson2.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
 * 版权设置
 * @author shenguangyang
 */
@Getter
@Setter
@Component
public class CopyrightParam extends BaseConfigParam<CopyrightParam> {
    /**
     * 网站备案号
     */
    private String icp;

    /**
     * 网站公安备案
     */
    private String govRecord;

    /**
     * 网站公安链接
     */
    private String govUrl;

    /**
     * 市场监督管理局链接
     */
    private String marketSupervisionUrl;


    @Override
    protected CopyrightParam jsonToObject(String json) {
        return JSON.parseObject(json, CopyrightParam.class);
    }

    @Override
    public ConfigKeyEnum configKey() {
        return ConfigKeyEnum.COPYRIGHT;
    }
}
